const mongoose = require('mongoose');

const CategorySchema = new mongoose.Schema({
   category_name: {
      type: String,
      required: [true, '类别不能为空'],
   },
   color: {
      type: String,
      default: '#ffe348',
   },
   icon: {
      type: String,
      unique: true
   },
});

module.exports = mongoose.model('Category', CategorySchema);
